<script setup>
import { tool } from "../tool/index"
import { onMounted, ref } from "vue"
import { ElMessage } from 'element-plus'
async function DataDelete(){
  const type = "user"
  const data = ref({
    key:"id",
    value:"43"
  })
  const response = await tool.dataDelete(type,data.value)
  console.log(response)
}
</script>

<template>
  <el-button @click="DataDelete()" > 操作 </el-button>
</template>

<style scoped>
</style>